package com.deuwise.system.mapper;

import com.deuwise.system.entity.SysMenu;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
    *  Mapper 接口
    * </p>
 *@author deuwise
 *@date 2018-11-06 14:15:04
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 子菜单
     * @param parentId
     * @param code
     * @return
     */
    List<SysMenu> queryListParentId(@Param("parentId")String parentId,@Param("code") String code);


    /**
     *除了按钮外的菜单
     * @return
     */
    List<SysMenu> queryNotButtonList();
}